package com.sy.common.utils;

public enum ResultStatus {
    SUCCESS(200, "成功"), FAIL(0, "失败");
    int code;
    String msg;

    private ResultStatus(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    @Override
    public String toString() {
        return String.valueOf(this.code);
    }
}
